import '@/utils/request'
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

// 获取列表
const getLs = params => {
    return httpPost({
        url: '/projectsettle/projectSettlement/listByEntity',
        params
    })
}
// 保存
const addBaseInfo = params => {
    return httpPost({
        url: '/projectsettle/projectSettlement/create',
        params
    })
}
// 获取基础信息
const getBaseInfo = params => {
    return httpGet({
        url: '/projectsettle/projectSettlement/findById',
        params
    })
}
// 获取单据明细
const getDetail = params => {
    return httpGet({
        url: '/projectsettle/projectSettlement/listDtlsById',
        params
    })
}
// 删除单据
const delBill = params => {
    return httpGet({
        url: '/projectsettle/projectSettlement/delete',
        params
    })
}
// 修改基础信息
const modifyBaseInfo = params => {
    return httpPost({
        url: '/projectsettle/projectSettlement/update',
        params
    })
}
// 修改基础信息
const modifyDetail = params => {
    return httpPost({
        url: '/projectsettle/projectSettlement/updateList',
        params
    })
}
// 重新汇总
const reSummary = params => {
    return httpGet({
        url: '/projectsettle/projectSettlement/summary',
        params
    })
}
export {
    getLs,
    addBaseInfo,
    getBaseInfo,
    getDetail,
    delBill,
    modifyBaseInfo,
    modifyDetail,
    reSummary
}
